
#include "ddiglobal.h"
#include "LIB_DEVICE_CONFIG.h"
#include "SWITCH.h"

#ifndef SUPPORT_ANDROID_ENV

#if SUPPORT_KEIL_BUILD_ENV

#define APP_VER "V"SDKAPPID_STR DEVICE_MACHINE_ID SDKAPPVERSION_STR    //VTREN280000001

extern struct  __core *core ;

typedef int (*core_app_start)(void);


typedef struct _APP_FIRMWARE_API
{
    core_app_start  app_start;
}APP_FIRMWARE_API;


const PCI_CORE_VERINFO pciappver __attribute__((at(APP_START_ADDR+MH1902_BASE_ADDR)))  =
{
    APP_VER
};


extern void Mercury_Main(u32 bootMode);

int main(void)
{
    core =  ( struct __core  *)(CORE_DDI_ADDR+MH1902_BASE_ADDR);//0xC200);

    Mercury_Main(0);
    return 0;
}

const APP_FIRMWARE_API appcore __attribute__((at(APP_CORE_START+MH1902_BASE_ADDR)))  =
{
    main
};

#endif

#endif
